﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020003F5 RID: 1013
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class DressRelicAvatarCsReq : IMessage<DressRelicAvatarCsReq>, IMessage, IEquatable<DressRelicAvatarCsReq>, IDeepCloneable<DressRelicAvatarCsReq>, IBufferMessage
	{
		// Token: 0x17000D01 RID: 3329
		// (get) Token: 0x06002D60 RID: 11616 RVA: 0x0007D1A1 File Offset: 0x0007B3A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<DressRelicAvatarCsReq> Parser
		{
			get
			{
				return DressRelicAvatarCsReq._parser;
			}
		}

		// Token: 0x17000D02 RID: 3330
		// (get) Token: 0x06002D61 RID: 11617 RVA: 0x0007D1A8 File Offset: 0x0007B3A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return DressRelicAvatarCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000D03 RID: 3331
		// (get) Token: 0x06002D62 RID: 11618 RVA: 0x0007D1BA File Offset: 0x0007B3BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return DressRelicAvatarCsReq.Descriptor;
			}
		}

		// Token: 0x06002D63 RID: 11619 RVA: 0x0007D1C1 File Offset: 0x0007B3C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressRelicAvatarCsReq()
		{
		}

		// Token: 0x06002D64 RID: 11620 RVA: 0x0007D1D4 File Offset: 0x0007B3D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressRelicAvatarCsReq(DressRelicAvatarCsReq other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.switchList_ = other.switchList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06002D65 RID: 11621 RVA: 0x0007D20A File Offset: 0x0007B40A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DressRelicAvatarCsReq Clone()
		{
			return new DressRelicAvatarCsReq(this);
		}

		// Token: 0x17000D04 RID: 3332
		// (get) Token: 0x06002D66 RID: 11622 RVA: 0x0007D212 File Offset: 0x0007B412
		// (set) Token: 0x06002D67 RID: 11623 RVA: 0x0007D21A File Offset: 0x0007B41A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x17000D05 RID: 3333
		// (get) Token: 0x06002D68 RID: 11624 RVA: 0x0007D223 File Offset: 0x0007B423
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<DressRelicParam> SwitchList
		{
			get
			{
				return this.switchList_;
			}
		}

		// Token: 0x06002D69 RID: 11625 RVA: 0x0007D22B File Offset: 0x0007B42B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as DressRelicAvatarCsReq);
		}

		// Token: 0x06002D6A RID: 11626 RVA: 0x0007D23C File Offset: 0x0007B43C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(DressRelicAvatarCsReq other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.switchList_.Equals(other.switchList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06002D6B RID: 11627 RVA: 0x0007D28C File Offset: 0x0007B48C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			num ^= this.switchList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06002D6C RID: 11628 RVA: 0x0007D2D9 File Offset: 0x0007B4D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06002D6D RID: 11629 RVA: 0x0007D2E1 File Offset: 0x0007B4E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06002D6E RID: 11630 RVA: 0x0007D2EC File Offset: 0x0007B4EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.AvatarId);
			}
			this.switchList_.WriteTo(ref output, DressRelicAvatarCsReq._repeated_switchList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06002D6F RID: 11631 RVA: 0x0007D33C File Offset: 0x0007B53C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			num += this.switchList_.CalculateSize(DressRelicAvatarCsReq._repeated_switchList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06002D70 RID: 11632 RVA: 0x0007D390 File Offset: 0x0007B590
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(DressRelicAvatarCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			this.switchList_.Add(other.switchList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06002D71 RID: 11633 RVA: 0x0007D3DD File Offset: 0x0007B5DD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06002D72 RID: 11634 RVA: 0x0007D3E8 File Offset: 0x0007B5E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					if (num != 114U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.switchList_.AddEntriesFrom(ref input, DressRelicAvatarCsReq._repeated_switchList_codec);
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040011F7 RID: 4599
		private static readonly MessageParser<DressRelicAvatarCsReq> _parser = new MessageParser<DressRelicAvatarCsReq>(() => new DressRelicAvatarCsReq());

		// Token: 0x040011F8 RID: 4600
		private UnknownFieldSet _unknownFields;

		// Token: 0x040011F9 RID: 4601
		public const int AvatarIdFieldNumber = 9;

		// Token: 0x040011FA RID: 4602
		private uint avatarId_;

		// Token: 0x040011FB RID: 4603
		public const int SwitchListFieldNumber = 14;

		// Token: 0x040011FC RID: 4604
		private static readonly FieldCodec<DressRelicParam> _repeated_switchList_codec = FieldCodec.ForMessage<DressRelicParam>(114U, DressRelicParam.Parser);

		// Token: 0x040011FD RID: 4605
		private readonly RepeatedField<DressRelicParam> switchList_ = new RepeatedField<DressRelicParam>();
	}
}
